package cn.myfirefly.moming.common.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "mm_user_role")
public class MMUserRole implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2680711431287046916L;
	private Integer userRoleSn;
	private Integer roleSn;
	private Integer userSn;
//	private Integer systemId;

	public MMUserRole() {
	}

	public MMUserRole(Integer roleSn, Integer userSn) {
		this.roleSn = roleSn;
		this.userSn = userSn;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "user_role_sn", unique = true, nullable = false)
	public Integer getUserRoleSn() {
		return this.userRoleSn;
	}

	public void setUserRoleSn(Integer userRoleSn) {
		this.userRoleSn = userRoleSn;
	}

	@Column(name = "role_sn")
	public Integer getRoleSn() {
		return this.roleSn;
	}

	public void setRoleSn(Integer roleSn) {
		this.roleSn = roleSn;
	}

	@Column(name = "user_sn")
	public Integer getUserSn() {
		return this.userSn;
	}

	public void setUserSn(Integer userSn) {
		this.userSn = userSn;
	}

//	@Column(name = "system_id", nullable = false)
//	public Integer getSystemId() {
//		return systemId;
//	}
//
//	public void setSystemId(Integer systemId) {
//		this.systemId = systemId;
//	}
}
